home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java for 3D & VRML Worlds
/
Java for 3d and VRML Worlds.iso
/
world
/
blur
/
blur.wrl
< prev
Wrap
Text File
|
1996-10-17
|
2KB
|
82 lines
#VRML V2.0 utf8
#
# "Simple Blur Effect" with one blur object
# created by ask@krc.sony.co.jp (Masamichi zzzcat Asukai)
#
# Copyright(C) 1996 Sony Corporation. All rights reserved.
#
Viewpoint {
position 0.0 0.0 15.0
}
Background {
skyColor 0.5 0.3 0.7
}
DEF REALOBJ Transform {
translation -5.0 0.0 0.0
children[
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.0
diffuseColor 0.4 0.6 0.5
emissiveColor 0.2 0.3 0.25
transparency 0.0
}
}
geometry Sphere{}
}
]
}
DEF TIME1 TimeSensor{
cycleInterval 5.0
stopTime -1
loop TRUE
}
DEF POSINT PositionInterpolator{
set_fraction 0.5
key [0, 0.2, 0.3, 0.5, 0.7, 0.8, 1]
keyValue [-5 0 0, -3 0 0, 3 0 0, 5 0 0, 3 0 0, -3 0 0, -5 0 0]
}
ROUTE TIME1.fraction_changed TO POSINT.set_fraction
ROUTE POSINT.value_changed TO REALOBJ.set_translation
DEF BLUROBJ Transform {
translation -5.0 0.0 0.0
children[
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.0
diffuseColor 0.4 0.6 0.5
emissiveColor 0.2 0.3 0.25
transparency 0.5
}
}
geometry Sphere{}
}
]
}
DEF TIME2 TimeSensor{
cycleInterval 0.05
stopTime -1
loop TRUE
}
DEF SCRIPT Script {
url "blur.class"
eventIn SFTime interval
eventOut SFVec3f setTranslation
field SFNode realobj USE REALOBJ
}
ROUTE TIME2.cycleTime TO SCRIPT.interval
ROUTE SCRIPT.setTranslation TO BLUROBJ.set_translation